package cn.csm.jwtlogin.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * description: HelloRestController <br>
 * date: 2020/10/30 9:27 <br>
 * author: shimi <br>
 * version: 1.0 <br>
 */
@RestController
@RequestMapping("/hello")
public class HelloController {


    @GetMapping
    public ResponseEntity<String> getStr(@RequestParam String str){
        return ResponseEntity.ok(str);
    }
}
